package com.etop.jansing.dto;

import com.etop.jansing.entities.Resource;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by jansing on 2015/10/26.
 */
public class ResourceDto {
    private Resource resource;
    private List<ResourceDto> subResourceDto;
    private boolean isSelected;

    public ResourceDto() {
    }

    public ResourceDto(Resource resource, boolean isSelected) {
        this.resource = resource;
        this.isSelected = isSelected;
        this.subResourceDto = new ArrayList<>();
    }

    public Resource getResource() {
        return resource;
    }

    public void setResource(Resource resource) {
        this.resource = resource;
    }

    public List<ResourceDto> getSubResourceDto() {
        return subResourceDto;
    }

    public void setSubResourceDto(List<ResourceDto> subResourceDto) {
        this.subResourceDto = subResourceDto;
    }

    public boolean getIsSelected() {
        return isSelected;
    }

    public void setIsSelected(boolean isSelected) {
        this.isSelected = isSelected;
    }
}

